<?php


namespace support\bootstrap;

use Doctrine\Common\Cache\FilesystemCache;
use Webman\Bootstrap;

class Cache implements Bootstrap
{
    /**
     * @var FilesystemCache
     */
    protected static $instance = null;

    public static function start($worker)
    {
        $cache = new FilesystemCache(runtime_path() .  DS . 'cache');
        self::$instance = $cache;
    }

    public static function instance()
    {
        return self::$instance;
    }

}
